import { ProductFileItem } from "../pis/models";

export interface MemberLevelItem {
  levels: number | null;
  name: string;
  geScore: number | null;
  ltScore: number | null;
}

export enum StoreValueStatus {
  unRelated = 0,
  normal = 1,
  frozen = 2,
}

export interface StoreValueItem {
  id: number;
  postTime: number;
  cardNo: string;
  passwd: string;
  denomination: number;
  memberId: number;
  balance: number;
  status: StoreValueStatus;
  associatedTime: number;
  memberName: string;
  phone: string;
}

export interface OrderItem {
  orderNo: string;
  tradeOrderNo: string;
  channelOrderNo: string;
  bankOrderNo: string;
  openid: string;
  unionId: string;
  communityId: number;
  warehouseId: string;
  name: string;
  phone: string;
  orderTime: number;
  deliveryTime: string;
  orderAmount: number;
  address: string;
  payVoucher: string;
  payMethod: number;
  payTime: number;
  payAmount: number;
  endTime: number;
  point: number;
  status: OrderStatus;
  storedValueIds: number[];
  detail: ProductFileItem[];
}

export enum OrderStatus {
  waitingPay = 0,
  waitingDelivery = 1,
  deliverySuccess = 2,
  cancel = 3,
  waitingReturnMoney = 4,
  returnMoney = 5,
  timeout = 6,
  payFail = 7,
}
